<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class Insure extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'insure';

    public function comp()
    {
        return $this->hasOne(InsureCompany::class, 'id', 'comp_id');
    }

    public function category()
    {
        return $this->hasOne(Category::class, 'id', 'cid');
    }

}
